import com.zaxxer.hikari.HikariDataSource;

import java.sql.SQLException;

public class Hello {
    public static void main(String[] args) {
        HikariDataSource dataSource = new HikariDataSource();
        dataSource.setJdbcUrl("jdbc:mysql://localhost:3306/student");
        dataSource.setUsername("root");
        dataSource.setPassword("Win032917.lx");
        dataSource.setDriverClassName("com.mysql.jdbc.Driver");
        dataSource.setMaximumPoolSize(10);
        dataSource.setMinimumIdle(5);
        dataSource.setConnectionTimeout(30000);

    }
}
